﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RetailSystem.MVC.Enums;

namespace RetailSystem.MVC.Models
{
    public class Selling
    {
        public int ID { get; set; }

        public int ShopID { get; set; }
        public virtual Shop Shop { get; set; }

        public int ProductInfoID { get; set; }
        public virtual ProductInfo Product { get; set; }

        public decimal PriceSell { get; set; }

        public decimal Number { get; set; }

        public decimal TotalAmt { get { return PriceSell*Number; } }

        public int Year { get; set; }

        public int Month { get; set; }

        public int Day { get; set; }

        public RecordStatus RecordStatus { get; set; }

    }
}